package com.dx.financehy.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import java.io.Serializable;

/**
 * <pre>
 * @描述：
 * @作者：CLD
 * @创建时间：2022-01-05 22:25
 * </pre>
 **/
@ApiModel(value = "分页DTO")
@Data
public class PageDTO implements Serializable {

    @ApiModelProperty(value = "当前页码", required = false)
    private Integer page = 1;

    @ApiModelProperty(value = "每页显示记录数", required = false)
    @Max(value = 100, message = "每页最大条数不能超过100条")
    private Integer size = 10;

    //@ApiModelProperty(value = "排序字段", required = false)
    @ApiModelProperty(value = "排序字段", hidden = true)
    private String sidx;

    //@ApiModelProperty(value = "排序方式", required = false)
    @ApiModelProperty(value = "排序字段", hidden = true)
    private String order;

    //@ApiModelProperty(value = "升序", required = false)
    @ApiModelProperty(value = "升序", hidden = true)
    private String asc;

}
